local fuyuan_active = fk.CreateSkill{
    name = "#tyj_heg__fuyuan_active",
}

local H = require "packages.ol_hegemony.util"

fuyuan_active:addEffect("active",{
    card_num = 1,
    target_num = 1,
    card_filter = function (self, player, to_select, selected)
      return #selected == 0
    end,
    target_filter = function (self, player, to_select, selected)
        local targets = table.filter(Fk:currentRoom().alive_players, function(p) return p:isKongcheng() and not H.compareKingdomWith(player, p) end)
        return #selected == 0 and table.contains(targets, to_select)
    end,
})

return fuyuan_active